package edu.whu.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.whu.demo.domain.Schedule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2022-11-24
 */
public interface IScheduleService extends IService<Schedule> {

    /*增加日程*/
    public Schedule addSchedule(Schedule schedule);

    /*根据id查询日程，包括对应的频率信息*/
    public Schedule getScheduleById(Long id);

    /*用户更新日程信息*/
    public Schedule updateScheduleUser(Long id,Schedule schedule);

    /*活动变更更新日程信息*/
    public Schedule updateScheduleActivity(Long id,Schedule schedule);

    /*变更所以日程信息*/
    public Schedule updateSchedule(Long id,Schedule schedule);

    /*删除日程*/
    public void deleteSchedule(Long id);

    /*查询日程*/
    public IPage<Schedule> findSchedule(Long uid,String searchInfo, Long pageNum, Long pageSize);

}

